package com.pengtu.entity.asset.car;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


import com.pengtu.entity.IdEntity;
@Entity(name="com.pengtu.entity.asset.car.Record")
@Table(name = "T_ASST_CAR_RECORD")
public class Record extends IdEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;



	
	private String userId;                    //使用人 					
	private Information carInformation ;                     //使用车辆 
	private String directions;                //说明  
	private Date startDate;                   //开始时间
	private Date finishDate;                  //结束时间
	private String destination;               //目的地
	private String department;                //代理人部门
	private String whetherbycar;              //是否自驾
	private int howManyPeople;                //使用人数
	private String choicecar;                 //选择车辆
	private String agent;					  //代理人
	private String remark;                    //备注
	
	public Record() {
		super();
	}
	@ManyToOne
	@JoinColumn(name="CARID",insertable=true,updatable=true)
	public Information getCarInformation() {
		return carInformation;
	}
	public void setCarInformation(Information carInformation) {
		this.carInformation = carInformation;
	}
	
	@Column(name="USERID",insertable=true,updatable=true)
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Column(name="DIRECTIONS")
	public String getDirections() {
		return directions;
	}

	public void setDirections(String directions) {
		this.directions = directions;
	}

	@Column(name="STARTDATE")
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	@Column(name="FINISHDATE")
	public Date getFinishDate() {
		return finishDate;
	}

	public void setFinishDate(Date finishDate) {
		this.finishDate = finishDate;
	}

	@Column(name="DESTINATION")
	public String getDestination() {
		return destination;
	}

	public void setDestination(String destination) {
		this.destination = destination;
	}

	@Column(name="DEPARTMENT")
	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	@Column(name="WHETHERBYCAR",length=1)
	public String getWhetherbycar() {
		return whetherbycar;
	}

	public void setWhetherbycar(String whetherbycar) {
		this.whetherbycar = whetherbycar;
	}
	
	@Column(name="HOWMANYPEOPLE")
	public int getHowManyPeople() {
		return howManyPeople;
	}

	public void setHowManyPeople(int howManyPeople) {
		this.howManyPeople = howManyPeople;
	}

	@Column(name="CHOICECAR")
	public String getChoicecar() {
		return choicecar;
	}

	public void setChoicecar(String choicecar) {
		this.choicecar = choicecar;
	}

	@Column(name="AGENT")
	public String getAgent() {
		return agent;
	}

	public void setAgent(String agent) {
		this.agent = agent;
	}

	@Column(name="REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
